package com.wzdigit.wms.wms.rpc.basic;

import com.wzdigit.wms.basic.client.response.basic.WarehouseApiResponse;
import com.wzdigit.wms.basic.service.code.WhsPermService;
import com.wzdigit.wms.wms.api.basic.WarehouseApi;
import com.wzdigit.wms.wms.service.basic.WarehouseService;
import lombok.extern.slf4j.Slf4j;
import org.apache.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

/**
 * 
 * 仓库远程服务
 * @author Administrator
 *
 */
@Slf4j
@Service(version = "${dubbo.providers.wms.warehouse.api:1.0.0}")
public class WarehouseApiImplService implements WarehouseApi {
	
	@Autowired
	private WhsPermService whsPremService;
	
	@Override
	public List<Integer> getWarehousePerm(String userName) {
		List<Integer> wareHouseIds = whsPremService.getWareHouseIds(userName);
		return wareHouseIds;
	}

}
